﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>无标题页</title>
    <script type="text/javascript">
        function ArrayReverse(arr)
        {
            var length = Math.floor(arr.length/2);
            for(var i=0;i<length;i++)
            {
                var temp;
                temp = arr[i];
                arr[i] = arr[arr.length-i-1];
                arr[arr.length-i-1] = temp;
            }
        }
        
        var arr1 = new Array();
        arr1[0] = "wsk";
        arr1[1] = 1;
        arr1[2] = 33;
        arr1[3] = "sfe";
        arr1[4] = "sles";
        ArrayReverse(arr1);
        for(var i=0;i<arr1.length;i++)
        {
            alert(arr1[i]);
        }
    </script>
</head>
<body>

</body>
</html>
